<!--
 * @Author: 梁 卓
 * @Version: V1.0.0
 * @Date: 2024-02-24 10:14:39
 * @LastEditors: 梁 卓
 * @LastEditTime: 2024-02-27 12:17:29
 * @FilePath: index.html
 * Copyright 2024 Marvin, All Rights Reserved. 
 * 2024-02-24 10:14:39
 * @Description: 
-->
<!DOCTYPE html>
<html>
  <head>
    <title>首 页</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <script src="./scripts/boot.js" type="text/javascript"></script>
    <script src="./demo/demo.css" type="text/javascript"></script>
    <style type="text/css">
      body{
          margin:0;padding:0;border:0;width:100%;height:100%;overflow:hidden;
      }    
      /*.header
      {
          background:url(../header.gif) repeat-x 0 -1px;
      }*/
      .Note
      {
          background:url(Notes_Large.png) no-repeat;width:32px;height:32px;
      }
      .Reports
      {
          background:url(Reports_Large.png) no-repeat;width:32px;height:32px;
      }
      </style>    
  </head>
  <body >   
  
  <div id="layout1" class="mini-layout" style="width:100%;height:100%;">
      <div class="app-header" region="north" height="70" showSplit="false" showHeader="false">
          <h1 style="margin:0;padding:15px;cursor:default;font-family:'Trebuchet MS',Arial,sans-serif;">图书管理系统</h1>
      </div>
      <div showHeader="false" region="west" width="180" maxWidth="250" minWidth="100" >
          <!--OutlookMenu-->
          <div id="leftTree" class="mini-outlookmenu" url="./data/outlookmenu.txt" onitemselect="onItemSelect"
              idField="id" parentField="pid" textField="text" borderStyle="border:0" expandOnLoad="false"
          >
          </div>
  
      </div>
      <div title="center" region="center" bodyStyle="overflow:hidden;">
          <iframe id="mainframe" frameborder="0" name="main" style="width:100%;height:100%;" border="0"></iframe>
      </div>
  </div>
      
      <script type="text/javascript">
          mini.parse();
  
          //init iframe src
          var iframe = document.getElementById("mainframe");
          iframe.src = "./pages/bookinfo/bookinfolist.html"
        //   iframe.src = "./pages/borrowinfo/borrowinfolist.html"
  
          function onItemSelect(e) {
              var item = e.item;
              iframe.src = item.url;
          }
  
  //        //自动选中id
  //        var tree = mini.get("leftTree");
  //        
  //        tree.selectNode("addRight");
      </script>
  
  </body>
</html>